const mockQuery = {
  code: 'ok',
  message: '',
  data: {
    list: [
      {
        key: '1',
        id: 1,
        resCode: 'potential',
        parentCode: 'customer',
        parentName: '客户',
        resName: '潜客管理',
        icon: 'appManage',
        weight: '1',
        linkUrl: '/customer/potential',
        resType: '菜单',
        status: '启用',
        creator: '刘曾荣',
        creatTime: '2019-01-01',
  },
    ],
    pagination: {
      currency: 1,
      total: 20,
      pageSize: 20,
    },
  },
};

const mockCreate = {
  code: 'ok',
  message: '',
  data: {},
};

const mockUpdate = {
  code: 'ok',
  message: '',
  data: {},
};

const mockRemove = {
  code: 'ok',
  message: '',
  data: {},
};

export default {
  'GET /api/resource/query': mockQuery,
  'POST /api/resource/create': mockCreate,
  'POST /api/resource/update': mockUpdate,
  'POST /api/resource/remove': mockRemove,
};
